package systemout2log4j;

public class OtherClass {
    public static void main(String[] args) {
        try {
            testname();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    public static void testname() throws Exception {
        System.out.println("this is a test");
        test2();
    }

    public static void test2() {
        System.err.println("-------test");
    }
}
